import request from '@/utils/request'

// 查询凭证设置列表
export function listProof(query) {
  return request({
    url: '/proof/proof/list',
    method: 'get',
    params: query
  })
}
// 查询摘要
export function FindAbstractProof() {
  return request({
    url: '/proof/proof/FindAbstract',
    method: 'get',
  })
}
// 查询凭证字
export function FindWordProof() {
  return request({
    url: '/proof/proof/FindWord',
    method: 'get',
  })
}

// 查询凭证设置详细
export function getProof(id) {
  return request({
    url: '/proof/proof/' + id,
    method: 'get'
  })
}

// 新增凭证设置
export function addProof(data) {
  return request({
    url: '/proof/proof',
    method: 'post',
    data: data
  })
}

// 修改凭证设置
export function updateProof(data) {
  return request({
    url: '/proof/proof',
    method: 'put',
    data: data
  })
}

// 删除凭证设置
export function delProof(id) {
  return request({
    url: '/proof/proof/' + id,
    method: 'delete'
  })
}


